<template>
  <div>
    <input v-model="count" />
    <h1>Parent</h1>
    {{ pv }}
    <ChildView foo="1" bar="2" @submit="childsubmit"></ChildView>
    <child-view :foo="count"></child-view>
    <!-- <button @click="">按钮</button> -->
  </div>
</template>

<script setup>
import ChildView from './ChildView.vue'
import { ref } from 'vue'

const pv = ref(0)

const count = ref(0)
const childsubmit = (e) => {
  pv.value = e
  console.log(e)
  console.log('childsubmit')
}
</script>
